import 'package:get/get.dart';

Map isLogin(response) {
  if (response.statusCode == 401 &&
      response.data['errors'].containsKey('islogin')) {
    Get.offAllNamed('/login');
    return {};
  } else {
    return response.data;
  }
}
